#include "TMusicManager.h"

int main ()
{
	vector <TMusicTrack> vect;
	string s;
	int h;
	TMusicManager *MusMan =  new TMusicManager("pivodirtjumper@mail.ru", "gigner");
	MusMan->Connect();
	cout << "Search keywords : ";
	cin >> s;
	cout << "Result :\n";
	vect = MusMan->Find(s);
	if (vect.size() == 0)
		return 0;
	for (int i=0; i < 5; i++)
	{
		cout << i << "  ";
		vect[i].Output();	
	};
	cout << "Number to download : ";
	cin >> h;
	vect[h].Download();
	//cin.get();
}